#ifndef RECORDITEM_H
#define RECORDITEM_H

#include <QWidget>

namespace Ui {
class RecordItem;
}

class RecordItem : public QWidget
{
    //节点id
    //数值信息
    //图鉴信息
    Q_OBJECT

public:
    explicit RecordItem(QWidget *parent = nullptr);
    ~RecordItem();
    void Refresh(int id);
    void Save();
    void Switch(bool btn);
    //最后保存的时间
    QString time = "";
    int narrationId = -1;
    QVector<QString> album;
    QJsonObject* data = nullptr;
    int id = -1;
    bool empty = false;
protected:
    void mousePressEvent(QMouseEvent *event);
private:
    void Init();
    Ui::RecordItem *ui;
};

#endif // RECORDITEM_H
